package com.greateffect.littlebud.lib.di.component;

import android.app.Application;

import com.greateffect.littlebud.lib.di.module.AppModule;
import com.greateffect.littlebud.lib.di.module.ImageModule;
import com.greateffect.littlebud.lib.imageloader.ImageLoader;
import com.greateffect.littlebud.lib.net.ApiHelper;
import com.greateffect.littlebud.lib.prefer.PreferencesHelper;
import com.greateffect.littlebud.lib.ui.BaseApplication;

import javax.inject.Singleton;

import dagger.Component;

@Singleton
@Component(modules = {AppModule.class, ImageModule.class})
public interface AppComponent {

    Application Application();

    //图片管理器,用于加载图片的管理类,默认使用glide
    ImageLoader imageLoader();

    PreferencesHelper preferencesHelper();

    ApiHelper httpRequestHelper();

    void inject(BaseApplication application);
}
